package org.jiajie.coffeecodes.demo.jvm.rtda.heap.constantpool;

import org.jiajie.coffeecodes.demo.jvm.classfile.constantpool.impl.ConstantClassInfo;

/**
 * @author jie
 */
public class ClassRef extends SymRef {

    public static ClassRef newClassRef(RunTimeConstantPool runTimeConstantPool, ConstantClassInfo classInfo) {
        ClassRef ref = new ClassRef();
        ref.runTimeConstantPool = runTimeConstantPool;
        ref.className = classInfo.name();
        return ref;
    }
}
